package org.example;
import org.junit.Test;

import java.sql.Connection;

import static org.junit.Assert.assertTrue; /**
 * @author xiaomengzi
 * @create 2025-08-07 上午9:45
 */
@Test
void testDatabaseConnection() {
    public static void main(String[] args) {
        assertDoesNotThrow(() -> {
            try (Connection conn = DBConnection.getConnection()) {
                assertTrue(conn.isValid(5));
            }
        });
    }
}